import 'package:flutter_demo2/leak/my_leak_test/async_page.dart';
import 'package:flutter_demo2/leak/my_leak_test/closure_page.dart';
import 'package:flutter_demo2/leak/my_leak_test/const_page.dart';
import 'package:flutter_demo2/leak/my_leak_test/page1.dart';
import 'package:flutter_demo2/leak/my_leak_test/page2.dart';
import 'package:flutter_demo2/pages.dart';
import 'package:route/route.dart';

List<RouteBuilder> pages = [
  RouteBuilder(FlutterPages.testLeakPage1, (Map<String, dynamic>? args) {
    return const Page1();
  }),
  RouteBuilder(FlutterPages.testLeakPage2, (Map<String, dynamic>? args) {
    return const Page2();
  }),
  RouteBuilder(FlutterPages.testLeakClosurePage, (Map<String, dynamic>? args) {
    return const ClosurePage();
  }),
  RouteBuilder(FlutterPages.testLeakConstPage, (Map<String, dynamic>? args) {
    return const ConstPage();
  }),
  RouteBuilder(FlutterPages.testLeakAsyncPage, (Map<String, dynamic>? args) {
    return const AsyncPage();
  }),
];